from django.urls import path
from. import views

urlpatterns = [
    path('', views.news_list, name='news_list'),  # 考研资讯列表页面路由
    path('<int:news_id>/', views.news_detail, name='news_detail'),  # 考研资讯详情页面路由，<int:news_id> 捕获资讯 ID
]